package jsyf.oa.entity.business;

import com.alibaba.fastjson.JSONObject;
import javax.persistence.Entity;
import javax.persistence.Table;

import jsyf.oa.ientity.BaseEntity;

@Entity
@Table(name = "t_apl_business_main", schema = "oa", catalog = "")
public class BusinessMainEntity extends BaseEntity {

    private String createUserId;
    private String customerId;
    private String dealModelId;
    private String dealPrice;
    private Integer dealNumber;
    private String dealTime;
    private String dealMoney;
    private Integer auditFlag;
    private String currentAuditorId;
    private String currentAuditorName;
    private String copierReturnReason;
    private String buyType;
    private String payMoney;
    private String stageLimit;
    private String loanMoney;
    private String financingCompany;
    private Integer payRatio;
    private Integer displaceFlag;
    private String proOldModel;
    private String proOldName;
    private String proOldAssessment;
    private String proOldReplacement;
    private String proOldAllowance;
    private String partGift;
    private String freightFee;
    private String laborFee;
    private String otherPrice;
    private String dealNetPrice;
    private String limitPrice;
    private Integer trustTrialFlag;
    private String trustTrialId;
    private String trustTrialName;
    private String trustTrialReason;
    private Integer valveFlag;
    private Integer pipelineFlag;

    private String customerName;
    private String customerTel;
    private String customerCredit;
    private String existingDevice;
    private String competitorCondition;
    private String otherCondition;
    private String createUserName;
    private String modelName;
    private String brandId;
    private String brandName;
    private String regionManagerId;
    private String regionManagerName;
    private String trustManagerId;

    private String replacementDesc;
    private String paymentDesc;
    private String dealDesc;
    private String partGiftDesc;

    private String trustTrialResultName;
    private String trustTrialResultUrl;
    private String customerInformationName;
    private String customerInformationUrl;

    private Integer btype;


    public String getCompetitorCondition() {
        return competitorCondition;
    }

    public void setCompetitorCondition(String competitorCondition) {
        this.competitorCondition = competitorCondition;
    }

    public String getCustomerCredit() {
        return customerCredit;
    }

    public void setCustomerCredit(String customerCredit) {
        this.customerCredit = customerCredit;
    }

    public String getExistingDevice() {
        return existingDevice;
    }

    public void setExistingDevice(String existingDevice) {
        this.existingDevice = existingDevice;
    }


    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getDealModelId() {
        return dealModelId;
    }

    public void setDealModelId(String dealModelId) {
        this.dealModelId = dealModelId;
    }

    public String getDealPrice() {
        return dealPrice;
    }

    public void setDealPrice(String dealPrice) {
        this.dealPrice = dealPrice;
    }

    public Integer getDealNumber() {
        return dealNumber;
    }

    public void setDealNumber(Integer dealNumber) {
        this.dealNumber = dealNumber;
    }

    public String getDealTime() {
        return dealTime;
    }

    public void setDealTime(String dealTime) {
        this.dealTime = dealTime;
    }

    public String getDealMoney() {
        return dealMoney;
    }

    public void setDealMoney(String dealMoney) {
        this.dealMoney = dealMoney;
    }

    public Integer getAuditFlag() {
        return auditFlag;
    }

    public void setAuditFlag(Integer auditFlag) {
        this.auditFlag = auditFlag;
    }

    public String getCurrentAuditorId() {
        return currentAuditorId;
    }

    public void setCurrentAuditorId(String currentAuditorId) {
        this.currentAuditorId = currentAuditorId;
    }

    public String getCurrentAuditorName() {
        return currentAuditorName;
    }

    public void setCurrentAuditorName(String currentAuditorName) {
        this.currentAuditorName = currentAuditorName;
    }

    public String getCopierReturnReason() {
        return copierReturnReason;
    }

    public void setCopierReturnReason(String copierReturnReason) {
        this.copierReturnReason = copierReturnReason;
    }

    public String getBuyType() {
        return buyType;
    }

    public void setBuyType(String buyType) {
        this.buyType = buyType;
    }

    public String getPayMoney() {
        return payMoney;
    }

    public void setPayMoney(String payMoney) {
        this.payMoney = payMoney;
    }

    public String getStageLimit() {
        return stageLimit;
    }

    public void setStageLimit(String stageLimit) {
        this.stageLimit = stageLimit;
    }

    public String getLoanMoney() {
        return loanMoney;
    }

    public void setLoanMoney(String loanMoney) {
        this.loanMoney = loanMoney;
    }

    public String getFinancingCompany() {
        return financingCompany;
    }

    public void setFinancingCompany(String financingCompany) {
        this.financingCompany = financingCompany;
    }

    public Integer getPayRatio() {
        return payRatio;
    }

    public void setPayRatio(Integer payRatio) {
        this.payRatio = payRatio;
    }

    public Integer getDisplaceFlag() {
        return displaceFlag;
    }

    public void setDisplaceFlag(Integer displaceFlag) {
        this.displaceFlag = displaceFlag;
    }

    public String getProOldModel() {
        return proOldModel;
    }

    public void setProOldModel(String proOldModel) {
        this.proOldModel = proOldModel;
    }

    public String getProOldName() {
        return proOldName;
    }

    public void setProOldName(String proOldName) {
        this.proOldName = proOldName;
    }

    public String getProOldAssessment() {
        return proOldAssessment;
    }

    public void setProOldAssessment(String proOldAssessment) {
        this.proOldAssessment = proOldAssessment;
    }

    public String getProOldReplacement() {
        return proOldReplacement;
    }

    public void setProOldReplacement(String proOldReplacement) {
        this.proOldReplacement = proOldReplacement;
    }

    public String getProOldAllowance() {
        return proOldAllowance;
    }

    public void setProOldAllowance(String proOldAllowance) {
        this.proOldAllowance = proOldAllowance;
    }

    public String getPartGift() {
        return partGift;
    }

    public void setPartGift(String partGift) {
        this.partGift = partGift;
    }

    public String getFreightFee() {
        return freightFee;
    }

    public void setFreightFee(String freightFee) {
        this.freightFee = freightFee;
    }

    public String getLaborFee() {
        return laborFee;
    }

    public void setLaborFee(String laborFee) {
        this.laborFee = laborFee;
    }

    public String getOtherPrice() {
        return otherPrice;
    }

    public void setOtherPrice(String otherPrice) {
        this.otherPrice = otherPrice;
    }

    public String getDealNetPrice() {
        return dealNetPrice;
    }

    public void setDealNetPrice(String dealNetPrice) {
        this.dealNetPrice = dealNetPrice;
    }

    public String getLimitPrice() {
        return limitPrice;
    }

    public void setLimitPrice(String limitPrice) {
        this.limitPrice = limitPrice;
    }


    public Integer getTrustTrialFlag() {
        return trustTrialFlag;
    }

    public void setTrustTrialFlag(Integer trustTrialFlag) {
        this.trustTrialFlag = trustTrialFlag;
    }

    public String getTrustTrialId() {
        return trustTrialId;
    }

    public void setTrustTrialId(String trustTrialId) {
        this.trustTrialId = trustTrialId;
    }

    public String getTrustTrialName() {
        return trustTrialName;
    }

    public void setTrustTrialName(String trustTrialName) {
        this.trustTrialName = trustTrialName;
    }

    public String getTrustTrialReason() {
        return trustTrialReason;
    }

    public void setTrustTrialReason(String trustTrialReason) {
        this.trustTrialReason = trustTrialReason;
    }

    public Integer getValveFlag() {
        return valveFlag;
    }

    public void setValveFlag(Integer valveFlag) {
        this.valveFlag = valveFlag;
    }

    public Integer getPipelineFlag() {
        return pipelineFlag;
    }

    public void setPipelineFlag(Integer pipelineFlag) {
        this.pipelineFlag = pipelineFlag;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerTel() {
        return customerTel;
    }

    public void setCustomerTel(String customerTel) {
        this.customerTel = customerTel;
    }

    public String getOtherCondition() {
        return otherCondition;
    }

    public void setOtherCondition(String otherCondition) {
        this.otherCondition = otherCondition;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getReplacementDesc() {
        return replacementDesc;
    }

    public void setReplacementDesc(String replacementDesc) {
        this.replacementDesc = replacementDesc;
    }

    public String getPaymentDesc() {
        return paymentDesc;
    }

    public void setPaymentDesc(String paymentDesc) {
        this.paymentDesc = paymentDesc;
    }

    public String getDealDesc() {
        return dealDesc;
    }

    public void setDealDesc(String dealDesc) {
        this.dealDesc = dealDesc;
    }

    public String getPartGiftDesc() {
        return partGiftDesc;
    }

    public void setPartGiftDesc(String partGiftDesc) {
        this.partGiftDesc = partGiftDesc;
    }

    public String getTrustTrialResultName() {
        return trustTrialResultName;
    }

    public void setTrustTrialResultName(String trustTrialResultName) {
        this.trustTrialResultName = trustTrialResultName;
    }

    public String getTrustTrialResultUrl() {
        return trustTrialResultUrl;
    }

    public void setTrustTrialResultUrl(String trustTrialResultUrl) {
        this.trustTrialResultUrl = trustTrialResultUrl;
    }

    public String getCustomerInformationName() {
        return customerInformationName;
    }

    public void setCustomerInformationName(String customerInformationName) {
        this.customerInformationName = customerInformationName;
    }

    public String getCustomerInformationUrl() {
        return customerInformationUrl;
    }

    public void setCustomerInformationUrl(String customerInformationUrl) {
        this.customerInformationUrl = customerInformationUrl;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getRegionManagerId() {
        return regionManagerId;
    }

    public void setRegionManagerId(String regionManagerId) {
        this.regionManagerId = regionManagerId;
    }

    public String getRegionManagerName() {
        return regionManagerName;
    }

    public void setRegionManagerName(String regionManagerName) {
        this.regionManagerName = regionManagerName;
    }

    public String getTrustManagerId() {
        return trustManagerId;
    }

    public void setTrustManagerId(String trustManagerId) {
        this.trustManagerId = trustManagerId;
    }

    public Integer getBtype() {
        return btype;
    }

    public void setBtype(Integer btype) {
        this.btype = btype;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("CREATE_TIME", getCreateTime());
        obj.put("CREATE_USER_ID", getCreateUserId());
        obj.put("CUSTOMER_ID", getCustomerId());
        obj.put("OTHER_CONDITION", getOtherCondition());
        obj.put("COMPETITOR_CONDITION", getCompetitorCondition());
        obj.put("EXISTING_DEVICE", getExistingDevice());
        obj.put("CUSTOMER_CREDIT", getCustomerCredit());
        obj.put("DEAL_MODEL_ID", getDealModelId());
        obj.put("MODEL_NAME", getModelName());
        obj.put("DEAL_PRICE", getDealPrice());
        obj.put("DEAL_NUMBER", getDealNumber());
        obj.put("DEAL_TIME", getDealTime());
        obj.put("DEAL_MONEY", getDealMoney());
        obj.put("AUDIT_FLAG", getAuditFlag());
        obj.put("CURRENT_AUDITOR_ID", getCurrentAuditorId());
        obj.put("CURRENT_AUDITOR_NAME", getCurrentAuditorName());
        obj.put("COPIER_RETURN_REASON", getCopierReturnReason());
        obj.put("BUY_TYPE", getBuyType());
        obj.put("PAY_MONEY", getPayMoney());
        obj.put("STAGE_LIMIT", getStageLimit());
        obj.put("LOAN_MONEY", getLoanMoney());
        obj.put("FINANCING_COMPANY", getFinancingCompany());
        obj.put("PAY_RATIO", getPayRatio());
        obj.put("DISPLACE_FLAG", getDisplaceFlag());
        obj.put("PRO_OLD_MODEL", getProOldModel());
        obj.put("PRO_OLD_NAME", getProOldName());
        obj.put("PRO_OLD_ASSESSMENT", getProOldAssessment());
        obj.put("PRO_OLD_REPLACEMENT", getProOldReplacement());
        obj.put("PRO_OLD_ALLOWANCE", getProOldAllowance());
        obj.put("PART_GIFT", getPartGift());
        obj.put("FREIGHT_FEE", getFreightFee());
        obj.put("LABOR_FEE", getLaborFee());
        obj.put("OTHER_PRICE", getOtherPrice());
        obj.put("DEAL_NET_PRICE", getDealNetPrice());
        obj.put("LIMIT_PRICE", getLimitPrice());
        obj.put("DEL_FLAG", getDelFlag());
        obj.put("TRUST_TRIAL_FLAG", getTrustTrialFlag());
        obj.put("TRUST_TRIAL_ID", getTrustTrialId());
        obj.put("TRUST_TRIAL_NAME", getTrustTrialName());
        obj.put("TRUST_TRIAL_REASON", getTrustTrialReason());
        obj.put("VALVE_FLAG",getValveFlag());
        obj.put("PIPELINE_FLAG",getPipelineFlag());
        obj.put("REPLACEMENT_DESC",getReplacementDesc());
        obj.put("PAYMENT_DESC",getPaymentDesc());
        obj.put("DEAL_DESC",getDealDesc());
        obj.put("PART_GIFT_DESC",getPartGiftDesc());
        obj.put("TRUST_TRIAL_RESULT_NAME",getTrustTrialResultName());
        obj.put("TRUST_TRIAL_RESULT_URL",getTrustTrialResultUrl());
        obj.put("CUSTOMER_INFORMATION_NAME",getCustomerInformationName());
        obj.put("CUSTOMER_INFORMATION_URL",getCustomerInformationUrl());
        obj.put("BRAND_NAME",getBrandName());
        obj.put("BRAND_ID",getBrandId());
        obj.put("REGION_MANAGER_ID",getRegionManagerId());
        obj.put("REGION_MANAGER_NAME",getRegionManagerName());
        obj.put("TRUST_MANAGER_ID",getTrustManagerId());
        obj.put("B_TYPE",getBtype());

        return obj;
    }

    @Override
    public String getTableName() {
        return "t_apl_business_main";
    }

    @Override
    public String getViewName() {
        return "v_apl_business_main";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("CREATE_TIME", "createTime");
        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("CUSTOMER_ID", "customerId");
        obj.put("OTHER_CONDITION", "otherCondition");
        obj.put("COMPETITOR_CONDITION", "competitorCondition");
        obj.put("EXISTING_DEVICE", "existingDevice");
        obj.put("CUSTOMER_CREDIT", "customerCredit");
        obj.put("DEAL_MODEL_ID", "dealModelId");
        obj.put("MODEL_NAME", "modelName");
        obj.put("DEAL_PRICE", "dealPrice");
        obj.put("DEAL_NUMBER", "dealNumber");
        obj.put("DEAL_TIME", "dealTime");
        obj.put("DEAL_MONEY", "dealMoney");
        obj.put("AUDIT_FLAG", "auditFlag");
        obj.put("CURRENT_AUDITOR_ID", "currentAuditorId");
        obj.put("CURRENT_AUDITOR_NAME", "currentAuditorName");
        obj.put("COPIER_RETURN_REASON", "copierReturnReason");
        obj.put("BUY_TYPE", "buyType");
        obj.put("PAY_MONEY", "payMoney");
        obj.put("STAGE_LIMIT", "stageLimit");
        obj.put("LOAN_MONEY", "loanMoney");
        obj.put("FINANCING_COMPANY", "financingCompany");
        obj.put("PAY_RATIO", "payRatio");
        obj.put("DISPLACE_FLAG", "displaceFlag");
        obj.put("PRO_OLD_MODEL", "proOldModel");
        obj.put("PRO_OLD_NAME", "proOldName");
        obj.put("PRO_OLD_ASSESSMENT", "proOldAssessment");
        obj.put("PRO_OLD_REPLACEMENT", "proOldReplacement");
        obj.put("PRO_OLD_ALLOWANCE", "proOldAllowance");
        obj.put("PART_GIFT", "partGift");
        obj.put("FREIGHT_FEE", "freightFee");
        obj.put("LABOR_FEE", "laborFee");
        obj.put("OTHER_PRICE", "otherPrice");
        obj.put("DEAL_NET_PRICE", "dealNetPrice");
        obj.put("LIMIT_PRICE", "limitPrice");
        obj.put("DEL_FLAG", "delFlag");
        obj.put("TRUST_TRIAL_FLAG", "trustTrialFlag");
        obj.put("TRUST_TRIAL_ID", "trustTrialId");
        obj.put("TRUST_TRIAL_NAME", "trustTrialName");
        obj.put("TRUST_TRIAL_REASON", "trustTrialReason");
        obj.put("VALVE_FLAG","valveFlag");
        obj.put("PIPELINE_FLAG","pipelineFlag");
        obj.put("REPLACEMENT_DESC","replacementDesc");
        obj.put("PAYMENT_DESC","paymentDesc");
        obj.put("DEAL_DESC","dealDesc");
        obj.put("TRUST_TRIAL_RESULT_NAME","trustTrialResultName");
        obj.put("TRUST_TRIAL_RESULT_URL","trustTrialResultUrl");
        obj.put("CUSTOMER_INFORMATION_NAME","customerInformationName");
        obj.put("CUSTOMER_INFORMATION_URL","customerInformationUrl");
        obj.put("BRAND_NAME","brandName");
        obj.put("BRAND_ID","brandId");
        obj.put("REGION_MANAGER_ID","regionManagerId");
        obj.put("REGION_MANAGER_NAME","regionManagerName");
        obj.put("TRUST_MANAGER_ID","trustManagerId");
        obj.put("B_TYPE","btype");
        return obj;
    }
}
